import request from '@/utils/request'

export function mypermissions() {
	return request({
		url: '/permission',
		method: 'get',
	})
}
export function findMyPermission(roleId) {
	return request({
		url: '/permission/'+roleId,
		method: 'get',
	})
}
export function addPermission(data) {
	return request({
		url: '/permission',
		method: 'put',
		data
	})
}
//保留接口，通过用户的信息可以查询到他对应权限的id
export function getRoId(data) {
	return request({
		url: '/role',
		method: 'post',
		data
	})
}
